package com.smart.community.user.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 头像上传DTO
 * 
 * @author Wu.Liang
 * @date 2025-01-30
 * @version 1.0.0
 */
@Data
@Schema(description = "头像上传请求参数")
public class AvatarUploadDTO {

    @Schema(description = "上传类型", example = "USER_AVATAR")
    @NotNull(message = "上传类型不能为空")
    @Size(max = 50, message = "上传类型长度不能超过50个字符")
    private String uploadType;

    @Schema(description = "上传来源", example = "APP")
    @NotNull(message = "上传来源不能为空")
    @Size(max = 20, message = "上传来源长度不能超过20个字符")
    private String uploadSource;

    @Schema(description = "备注信息", example = "用户头像")
    @Size(max = 200, message = "备注信息长度不能超过200个字符")
    private String remark;
}
